class OscSearchListEntity {
	List<OscSearch> searchList;

	OscSearchListEntity({this.searchList});

	OscSearchListEntity.fromJson(Map<String, dynamic> json) {
		if (json['searchlist'] != null) {
			searchList = new List<OscSearch>();(json['searchlist'] as List).forEach((v) { searchList.add(new OscSearch.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.searchList != null) {
      data['searchlist'] =  this.searchList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class OscSearch {
	String author;//作者/发者布
	int id;//搜索对象id
	String type;//news-新闻，blog-博客，project-开源软件，post-帖子、问答
	String title;//标题
	String pubDate;//发布时间
	String url;//链接

	OscSearch({this.author, this.id, this.type, this.title, this.pubDate, this.url});

	OscSearch.fromJson(Map<String, dynamic> json) {
		author = json['author'];
		id = json['id'];
		type = json['type'];
		title = json['title'];
		pubDate = json['pubDate'];
		url = json['url'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['author'] = this.author;
		data['id'] = this.id;
		data['type'] = this.type;
		data['title'] = this.title;
		data['pubDate'] = this.pubDate;
		data['url'] = this.url;
		return data;
	}
}
